//
//  Player.h
//  Space shooting
//
//  Created by Raiden on 9/10/13.
//
//

#ifndef __Space_shooting__Player__
#define __Space_shooting__Player__

#include <iostream>
#include "cocos2d.h"
#include "CCMWSprite.h"

using namespace cocos2d;

class Player : public cocos2d::CCSprite {

    CCSize size;
    
    CCMWSprite *explotion;
    
public:
    
    int bulletType;
    int hp, maxHp, orbNumber;
    
    bool isDead;
    
    Player();
    ~Player();
    
    static Player* create();

    void update(float delta);

    void startFire();
    void fire(int type);
    void fireDouble();
    void fireTriple();

    void selfExplotion();
    
    void removeBullet(CCObject *sender);
};

#endif /* defined(__Space_shooting__Player__) */
